how to find the perimeter of a polygon on a coordinate plane